/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */
import VideoProfile from './videoProfile'

export default class WfcAVEngineKit {
    /**
     * CallSession 相关回调
     * @deprecated 可能被移除，请勿直接设置，可通过{@link setup}参数直接传入
     */
    sessionCallback;

    /**
     * 音视频window显示的时候调用
     */
    setup(sessionCallback) {
    }
    /**
     * 返回当前音视频通话session
     * 仅在音视频窗口调用有效
     */
    getCurrentSession() {

    }
    static MAX_AUDIO_PARTICIPANT_COUNT = 16;
    static MAX_VIDEO_PARTICIPANT_COUNT = 9;

    // 是否禁用双流模式
    static DISABLE_DUAL_STREAM = false;

    /**
     屏幕分享替换模式。为ture时，屏幕分享会替换摄像头的数据流。为false时，屏幕分享会再单独发起一路，不会影响摄像头的输入。
     */
    static SCREEN_SHARING_REPLACE_MODE = true;

    /**
     禁止双流模式下，小流低帧率。默认为false，小流的帧率为8fps。当为true时使用 {@link SMALL_STREAM_FPS}， 或者使用同大流一样的帧率
     */
     static DISABLE_SMALL_STREAM_LOW_FPS = false;

    /**
     * 小流分辨率，宽度
     */
     static SMALL_STREAM_WIDTH = 200;

    /**
     * 小流分辨率， 高度
     */
     static SMALL_STREAM_HEIGHT = 200;

    /**
     * 小流 fps
     */
    static SMALL_STREAM_FPS = 8;

    static VIDEO_PROFILE = VideoProfile.VPDEFAULT;

    // 可参考 {@link videoProfile} 里面的bitrate，仅非替换模式生效。
    // 屏幕共享的分辨率等，需通过{@link startScreenShare} 设置
    static SCREEN_SHARE_MAX_BITRATE = 3600;
    /**
     * 高级版音视频 SDK 有效
     * 是否强制使用 TCP 传输媒体数据
     * 启用时，janus 的配置里面，需要将 ice_tcp 置为 true
     * 注意，强制使用 TCP 传输媒体数据，在网络丢包比较严重时，效果可能不太好
     * @type {boolean}
     */

    static FORCE_MEDIA_OVER_TCP = false;
    // 没有摄像头时的占位视频
    // 200 x 200，1s，无声，黑屏
    static DUMMY_VIDEO_URI =  'data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28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